import { ref, computed } from "vue";
import { defineStore, acceptHMRUpdate } from "pinia";

/**
 * 左侧菜单是否展开
 */
export const useIsCollapseStore = defineStore("isCollapse", () => {
    // let localCollapse = ref(JSON.parse(localStorage.getItem('system')).isCollapse);
    let isCollapse = ref(0);
    function handleCollapse() {
        isCollapse.value += 1;
        // console.log(isCollapse);
        console.log('1111111111');
    }
    function ChangeCollapse(newValue) {
        isCollapse.value = newValue;
    }
    return { isCollapse, handleCollapse, };
});
